a=input("请输入一串数字");
target=int(input("请输入一个数"));
nums=[];
for i in a.split(","):
    nums.append(int(i));
s=[];
for i in range(0,len(nums)-1):
    for j in range(i + 1, len(nums)):
        if (nums[i] + nums[j] == target):
            s.append(i);
            s.append(j);
print(s);
